import request from '@/utils/request'

// 查询家乡印象-作品列表
export function listPlay(query) {
  return request({
    url: '/store/play/list',
    method: 'get',
    params: query
  })
}

// 查询家乡印象-作品详细
export function getPlay(playId) {
  return request({
    url: '/store/play/one?playId=' + playId,
    method: 'get'
  })
}

// 新增家乡印象-作品
export function addPlay(data) {
  return request({
    url: '/store/play',
    method: 'post',
    data: data
  })
}

// 修改家乡印象-作品
export function updatePlay(data) {
  return request({
    url: '/store/play/update',
    method: 'post',
    data: data
  })
}

// 删除家乡印象-作品
export function delPlay(playIds) {
  return request({
    url: '/store/play/delete',
    method: 'post',
    data: {
      dataId: playIds
    }
  })
}

export function editStatus(data) {
  return request({
    url: '/store/play/editStatus',
    method: 'post',
    data: data
  })
}

